package com.dwzlab.vo;

import java.io.Serializable;

public class XUser implements Serializable{
	private static final long serialVersionUID = -5500918379449673986L;
	private int id;
	private String e_name;
	private int ref_d_id;
	private Department department;

	public XUser() {
	}
	
	public XUser(int id){
		this.id = id;
	}
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getE_name() {
		return e_name;
	}

	public void setE_name(String e_name) {
		this.e_name = e_name;
	}

	public int getRef_d_id() {
		return ref_d_id;
	}

	public void setRef_d_id(int ref_d_id) {
		department = new Department(ref_d_id);
		setDepartment(department);
		this.ref_d_id = ref_d_id;
	}

	public Department getDepartment() {
		return department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

	@Override
	public String toString() {
//		return id + " - " + e_name+" deptId:"+ department.getId();
		return id + " - " + e_name+" ;";
	}
	
}
